<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <img src="imgs/1.jpg" alt="">
    <img src="imgs/2.jpg" alt="">
    <img src="imgs/3.jpg" alt="">
    <img src="imgs/4.jpg" alt="">
    <img src="imgs/5.jpg" alt="">
    <script>
        // 获取到所有的图片数组
        var imgList = document.querySelectorAll('img');
        for(var i = 0;i < imgList.length;i++){
            var img = imgList[i]; // 获取到要判断的图片
            // console.log(img.src,img.width)
            if(img.naturalWidth > 250){//此处通过获取原始宽度判断
                console.log(img.src);
            }
        } 
    </script>
</body>
</html>